<!DOCTYPE html>
<!--
This is a starter template page. Use this page to start your new project from
scratch. This page gets rid of all links and provides the needed markup only.
-->
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>前端库</title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <!-- Bootstrap 3.3.6 -->
  <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="https://cdn.bootcss.com/font-awesome/4.5.0/css/font-awesome.min.css">
  <!-- Ionicons -->
  <link rel="stylesheet" href="https://cdn.bootcss.com/ionicons/2.0.1/css/ionicons.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="dist/css/AdminLTE.min.css">
  <!-- AdminLTE Skins. We have chosen the skin-blue for this starter
        page. However, you can choose any other skin. Make sure you
        apply the skin class to the body tag so the changes take effect.
  -->
  <link rel="stylesheet" href="dist/css/skins/skin-blue.min.css">
		<link rel="shortcut icon" href="http://likexia.gitee.io/tools/lib/img/h5.png" type="image/x-icon">

  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  <!--[if lt IE 9]>
  <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
  <![endif]-->
</head>

<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">

  <!-- Main Header -->
  <header class="main-header">

    <!-- Logo -->
    <a href="index.html" class="logo">
      <!-- mini logo for sidebar mini 50x50 pixels -->
      <span class="logo-mini"><b>库</b></span>
      <!-- logo for regular state and mobile devices -->
      <span class="logo-lg"><b>前端库</b></span>
    </a>

    <!-- Header Navbar -->
    <nav class="navbar navbar-static-top" role="navigation">
      <!-- Sidebar toggle button-->
      <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
        <span class="sr-only">Toggle navigation</span>
      </a>
      <!-- Navbar Right Menu -->
      
    </nav>
  </header>
  <!-- Left side column. contains the logo and sidebar -->
  <aside class="main-sidebar">

    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">

      <!-- Sidebar Menu -->
      <ul class="sidebar-menu">
        <li class="header">前端导航</li>
        <!-- Optionally, you can add icons to the links -->
        <li>
          <a href="index.html"><i class="fa fa-dashboard"></i> <span>常用网站</span> </a>
        </li>
        <li class="treeview">
          <a href="#"><i class="fa  fa-html5"></i> <span>HTML</span> <i class="fa fa-angle-left pull-right"></i></a>
          <ul class="treeview-menu">
            <li><a href="html1.html"><i class="fa fa-circle-o"></i>布局</a></li>
            <li><a href="html2.html"><i class="fa fa-circle-o"></i>效果</a></li>
          </ul>
        </li>
        <li class="treeview active">
          <a href="css.html"><i class="fa fa-css3"></i> <span>CSS</span> <i class="fa fa-angle-left pull-right"></i></a>
          <ul class="treeview-menu">
            <li><a href="css1.html"><i class="fa fa-circle-o"></i>常用</a></li>
            <li class="active"><a href="css2.html"><i class="fa fa-circle-o"></i>片段</a></li>
          </ul>
        </li>
        <li class="treeview">
          <a href="js.html"><i class="fa  fa-superscript"></i> <span>JS</span> <i class="fa fa-angle-left pull-right"></i></a>
          <ul class="treeview-menu">
            <li><a href="js1.html"><i class="fa fa-circle-o"></i>常用</a></li>
            <li><a href="js2.html"><i class="fa fa-circle-o"></i>片段</a></li>
          </ul>
        </li>
        <li class="treeview">
          <a href="#"><i class="fa fa-superscript"></i> <span>项目导航</span> <i class="fa fa-angle-left pull-right"></i></a>
          <ul class="treeview-menu">
            <li><a href="smallsite.html"><i class="fa fa-circle-o"></i>项目</a></li>
            <li><a href="libs.html"><i class="fa fa-circle-o"></i>公用库</a></li>
            <li><a href="muban.html"><i class="fa fa-circle-o"></i>我的模板</a></li>
          </ul>
        </li>
      </ul>
      <!-- /.sidebar-menu -->
    </section>
    <!-- /.sidebar -->
  </aside>

  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <h1>
        收集css片段
        <small>介绍</small>
      </h1>
      <ol class="breadcrumb">
        <li><a href="index.html"><i class="fa fa-dashboard"></i> 首页</a></li>
        <li class="active">当前</li>
      </ol>
    </section>

    <!-- Main content -->
    <section class="content">

     <div class="row">
<!--start-->
        <div class="col-md-6">
          <div class="box box-warning collapsed-box">
            <div class="box-header with-border">
              <h3 class="box-title">CSS3滤镜效果:-webkit-filter </h3>

              <div class="box-tools pull-right">
                <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-plus"></i>
                </button>
              </div>
              <!-- /.box-tools -->
            </div>
            <!-- /.box-header -->
            <div class="box-body">
              <xmp>img{-webkit-filter:grayscale(1);//灰度100%效果
-webkit-filter:blur(5px);  //模糊，此处为5像素
-webkit-filter:sepia(0.5);  //叠加褐色，取值范围0-1，此处表示50%的褐色

-webkit-filter:brightness(0.5);  //亮度，取值范围0-1，5倍亮度（数字为0时为正常样式，为1时表示的是100%亮度，无法看到图片）

-webkit-filter:hue-rotate(30deg); //色相（按照色相环进行旋转，顺时针方向，红-橙-黄-黄绿-绿-蓝绿-蓝-蓝紫-紫-紫红-红）此处为叠加黄色滤镜

-webkit-filter:invert(1);  //反色，取值范围0-1,0为原图，1为彻底反色之后，0.5为灰色
-webkit-filter:saturate(4);  //饱和度，取值范围0~*,0为无饱和度，1为原图，值越高饱和度越大

-webkit-filter:contrast(2);  //对比度，取值范围0~*,0为无对比度（灰色），1为原图，值越高对比度越大

-webkit-filter:opacity(0.8);  //透明度，取值范围0~1,0为全透明，1为原图

-webkit-filter:drop-shadow(17px 17px 20px black); //阴影
}</xmp>
            </div>
            <!-- /.box-body -->
          </div>
          <!-- /.box -->
        </div>
        <!-- /.col -->
        <!--end-->
        <!--start-->
        <div class="col-md-6">
          <div class="box box-success collapsed-box">
            <div class="box-header with-border">
              <h3 class="box-title">第一行不缩进，其余行都缩进2个字符</h3>

              <div class="box-tools pull-right">
                <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-plus"></i>
                </button>
              </div>
              <!-- /.box-tools -->
            </div>
            <!-- /.box-header -->
            <div class="box-body">
              <xmp>.text{font-size: 18px;line-height: 20px;padding-left: 18px;text-indent: -18px;}</xmp>
            </div>
            <!-- /.box-body -->
          </div>
          <!-- /.box -->
        </div>
        <!-- /.col -->
        <!--end-->
        <!--start-->
        <div class="col-md-6">
          <div class="box box-danger collapsed-box">
            <div class="box-header with-border">
              <h3 class="box-title">去除谷歌浏览器input自动填充黄色背景</h3>

              <div class="box-tools pull-right">
                <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-plus"></i>
                </button>
              </div>
              <!-- /.box-tools -->
            </div>
            <!-- /.box-header -->
            <div class="box-body">
              <xmp>input:-webkit-autofill {
	-webkit-box-shadow: 0 0 0px 1000px white inset !important;
}</xmp>
            </div>
            <!-- /.box-body -->
          </div>
          <!-- /.box -->
        </div>
        <!-- /.col -->
        <!--end-->
        <!--start-->
        <div class="col-md-6">
          <div class="box box-primary collapsed-box">
            <div class="box-header with-border">
              <h3 class="box-title">placeholder颜色</h3>

              <div class="box-tools pull-right">
                <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-plus"></i>
                </button>
              </div>
              <!-- /.box-tools -->
            </div>
            <!-- /.box-header -->
            <div class="box-body">
              <h3>默认</h3>
              <xmp>::-webkit-input-placeholder {
	/* WebKit browsers*/
	color: #aaaaaa;
}
:-moz-placeholder {
	/* Mozilla Firefox 4 to 18*/
	color: #aaaaaa;
}
::-moz-placeholder {
	/* Mozilla Firefox 19+*/
	color: #aaaaaa;
}
:-ms-input-placeholder {
	/* Internet Explorer 10+*/
	color: #aaaaaa;
}</xmp>
            <h3>聚焦</h3>
              <xmp>input:focus::-webkit-input-placeholder {
	color: #EEEEEE;
}</xmp>
            </div>
            <!-- /.box-body -->
          </div>
          <!-- /.box -->
        </div>
        <!-- /.col -->
        <!--end-->
        <!--start-->
        <div class="col-md-6">
          <div class="box box-warning collapsed-box">
            <div class="box-header with-border">
              <h3 class="box-title">等宽的表格单元格</h3>

              <div class="box-tools pull-right">
                <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-plus"></i>
                </button>
              </div>
              <!-- /.box-tools -->
            </div>
            <!-- /.box-header -->
            <div class="box-body">
              <xmp>table { 
  table-layout: fixed; 
} </xmp>
            </div>
            <!-- /.box-body -->
          </div>
          <!-- /.box -->
        </div>
        <!-- /.col -->
        <!--end-->
        <!--start-->
        <div class="col-md-6">
          <div class="box box-success collapsed-box">
            <div class="box-header with-border">
              <h3 class="box-title">标题</h3>

              <div class="box-tools pull-right">
                <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-plus"></i>
                </button>
              </div>
              <!-- /.box-tools -->
            </div>
            <!-- /.box-header -->
            <div class="box-body">
              <h3>CSS</h3>
              <xmp>1</xmp>
            <h3>HTML</h3>
              <xmp>2</xmp>
              <h3>JS</h3>
              <xmp>3</xmp>
            </div>
            <!-- /.box-body -->
          </div>
          <!-- /.box -->
        </div>
        <!-- /.col -->
        <!--end-->
        <!--start-->
        <div class="col-md-6">
          <div class="box box-danger collapsed-box">
            <div class="box-header with-border">
              <h3 class="box-title">子元素样式设置（奇数、偶数、连续）</h3>

              <div class="box-tools pull-right">
                <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-plus"></i>
                </button>
              </div>
              <!-- /.box-tools -->
            </div>
            <!-- /.box-header -->
            <div class="box-body">
             子元素下标从1开始，n代表整数，2可以为任意整数
              <h3>奇数</h3>
              <xmp>li:nth-child(2n-1){...}
li:nth-child(odd){...}</xmp>
            <h3>偶数</h3>
              <xmp>li:nth-child(2n){...}
li:nth-child(even){...}</xmp>
              选中连续的几个元素
              <h3>选择第7到14个子元素</h3>
              <xmp>ol li:nth-child(n+7):nth-child(-n+14) {
  background: lightpink;
}</xmp>/** Or Safari Way **/
           
              <xmp>ol li:nth-child(-n+14):nth-child(n+7) {
  background: lightpink;
}</xmp>
            </div>
            <!-- /.box-body -->
          </div>
          <!-- /.box -->
        </div>
        <!-- /.col -->
        <!--end-->
        <!--start-->
        <div class="col-md-6">
          <div class="box box-primary collapsed-box">
            <div class="box-header with-border">
              <h3 class="box-title">标题</h3>

              <div class="box-tools pull-right">
                <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-plus"></i>
                </button>
              </div>
              <!-- /.box-tools -->
            </div>
            <!-- /.box-header -->
            <div class="box-body">
              <h3>CSS</h3>
              <xmp>1</xmp>
            <h3>HTML</h3>
              <xmp>2</xmp>
              <h3>JS</h3>
              <xmp>3</xmp>
            </div>
            <!-- /.box-body -->
          </div>
          <!-- /.box -->
        </div>
        <!-- /.col -->
        <!--end-->
        </div>

    </section>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->

  <!-- Main Footer -->
  <footer class="main-footer">
    <!-- To the right -->
    <div class="pull-right hidden-xs">
      Anything you want
    </div>
    <!-- Default to the left -->
    <strong>Copyright &copy; 2017 <a href="#">Company</a>.</strong> All rights reserved.
  </footer>

  <!-- Add the sidebar's background. This div must be placed
       immediately after the control sidebar -->
  <div class="control-sidebar-bg"></div>
</div>
<!-- ./wrapper -->

<!-- REQUIRED JS SCRIPTS -->

<!-- jQuery 2.2.0 -->
<script src="plugins/jQuery/jQuery-2.2.0.min.js"></script>
<!-- Bootstrap 3.3.6 -->
<script src="bootstrap/js/bootstrap.min.js"></script>
<!-- AdminLTE App -->
<script src="dist/js/app.min.js"></script>

<!-- Optionally, you can add Slimscroll and FastClick plugins.
     Both of these plugins are recommended to enhance the
     user experience. Slimscroll is required when using the
     fixed layout. -->
</body>
</html>
